<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "goods_order_credential".
 *
 * @property int $merchant_id 商户ID,取merchant
 * @property int $order_id 订单ID,取goods_order
 * @property string $uri 凭据地址
 *
 * @property GoodsOrder $order
 */
class GoodsOrderCredential extends \yii\db\ActiveRecord
{
    /**
     * {@inheritdoc}
     */
    public static function tableName()
    {
        return 'goods_order_credential';
    }

    /**
     * Gets query for [[Order]].
     *
     * @return \yii\db\ActiveQuery
     */
    public function getOrder()
    {
        return $this->hasOne(GoodsOrder::className(), ['order_id' => 'order_id']);
    }
}
